<?php
namespace User\Controller;
use Think\Controller;
/**
 * 新手学堂
 */
class HelpController extends CkController {

    public function index(){
       $data['helplist']= M("help")->where(array("type"=>1))->order("sort asc,id asc")->select();
       $data['title']="新手学堂";
       $id=(int)I('get.id');
       if($id){
         $data['help']=M('help')->where(array("id"=>$id))->find();
       }
       $this->assign($data);
       $this->display();
    }

}